import service from '@/utils/request'
// @Tags StudentScores
// @Summary 创建成绩模块
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.StudentScores true "创建成绩模块"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /CJ/createStudentScores [post]
export const createStudentScores = (data) => {
  return service({
    url: '/CJ/createStudentScores',
    method: 'post',
    data
  })
}

// @Tags StudentScores
// @Summary 删除成绩模块
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.StudentScores true "删除成绩模块"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CJ/deleteStudentScores [delete]
export const deleteStudentScores = (params) => {
  return service({
    url: '/CJ/deleteStudentScores',
    method: 'delete',
    params
  })
}

// @Tags StudentScores
// @Summary 批量删除成绩模块
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除成绩模块"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /CJ/deleteStudentScores [delete]
export const deleteStudentScoresByIds = (params) => {
  return service({
    url: '/CJ/deleteStudentScoresByIds',
    method: 'delete',
    params
  })
}

// @Tags StudentScores
// @Summary 更新成绩模块
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.StudentScores true "更新成绩模块"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /CJ/updateStudentScores [put]
export const updateStudentScores = (data) => {
  return service({
    url: '/CJ/updateStudentScores',
    method: 'put',
    data
  })
}

// @Tags StudentScores
// @Summary 用id查询成绩模块
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.StudentScores true "用id查询成绩模块"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /CJ/findStudentScores [get]
export const findStudentScores = (params) => {
  return service({
    url: '/CJ/findStudentScores',
    method: 'get',
    params
  })
}

// @Tags StudentScores
// @Summary 分页获取成绩模块列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取成绩模块列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /CJ/getStudentScoresList [get]
export const getStudentScoresList = (params) => {
  return service({
    url: '/CJ/getStudentScoresList',
    method: 'get',
    params
  })
}

// @Tags StudentScores
// @Summary 不需要鉴权的成绩模块接口
// @accept application/json
// @Produce application/json
// @Param data query szzyReq.StudentScoresSearch true "分页获取成绩模块列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /CJ/getStudentScoresPublic [get]
export const getStudentScoresPublic = () => {
  return service({
    url: '/CJ/getStudentScoresPublic',
    method: 'get',
  })
}
